Skip to content

Instantly share code, notes, and snippets.

@twostraws
twostraws / SpriteKit-SwiftUI-Metaballs.swift
Created June 16, 2025 14:05
A 30-minute hack to recreate the "iBeer" effect using SpriteKit, SwiftUI, and metaballs.
//
// A 30-minute hack to recreate the "iBeer" effect using SpriteKit, SwiftUI, and metaballs.
// The effect is created by having hundreds of physics-enabled balls in a SpriteKit scene,
// all drawing nothing. These balls are then read back out by SwiftUI in a TimelineView, and
// drawn using blur and alpha threshold filters to make them appear to be a liquid.
// The SpriteKit scene then has its gravity changed dynamically using the accelerometer,
// meaning that the "liquid" splashes around as you tilt your phone.
//
// Created by Paul Hudson
// https://www.hackingwithswift.com/license

Beast Mode

Beast Mode is a custom chat mode for VS Code agent that adds an opinionated workflow to the agent, including use of a todo list, extensive internet research capabilities, planning, tool usage instructions and more. Designed to be used with 4.1, although it will work with any model.

Below you will find the Beast Mode prompt in various versions - starting with the most recent - 3.1

Installation Instructions

  • Go to the "agent" dropdown in VS Code chat sidebar and select "Configure Modes".
  • Select "Create new custom chat mode file"
filc overhead rough tests:
- mg /usr/share/dict/words
- yolo: 10MB maxrss / 101m insn / 54m cycle
- filc: 30MB maxrss / 370m insn / 176m cycle
- filc/yolo: 3x mem / 3.66x insn
- xzcat optfil-0.674-linux-x86_64.tar.xz >/dev/null
- yolo: 9.7MB maxrss / 40.4bn insn / 32.7bn cycle / 9.42s real / 9.32s user / 0.09s sys
- filc: 33.2MB maxrss / 77.5bn insn / 42.8bn cycle / 12.29s real / 12.16s user / 0.14s sys
@tak-dcxi
tak-dcxi / typography.md
Last active January 15, 2026 02:03
ใ‚ฟใ‚คใƒใ‚ฐใƒฉใƒ•ใ‚ฃCSS

ใ‚ฟใ‚คใƒใ‚ฐใƒฉใƒ•ใ‚ฃ

ๆฑŽ็”จ็š„ใชๆ–‡็ซ ใฎๆŠ˜ใ‚Š่ฟ”ใ—ๆŒ‡ๅฎš

  • ไธ‹ใฎใ‚ˆใ†ใชๆŒ‡ๅฎšใ‚’:rootใซๆŒ‡ๅฎšใ—ใฆใŠใใ€‚
:where(:root) {
  overflow-wrap: anywhere; /* ๅŽใพใ‚‰ใชใ„ๅ ดๅˆใซๆŠ˜ใ‚Š่ฟ”ใ™ */
  /* word-break: initial; ๅ˜่ชžใฎๅˆ†ๅ‰ฒใฏใƒ‡ใƒ•ใ‚ฉใƒซใƒˆใซไพๅญ˜๏ผˆๅˆๆœŸๅ€คใฎใŸใ‚ๆŒ‡ๅฎšใ—ใชใใฆ่‰ฏใ„๏ผ‰ */

Software Engineering Philosophy & Development Protocol

1. Global Integrity & Topology

  • System Awareness: Before implementation, map the dependency graph and system topology. Ensure local changes preserve global invariants and do not trigger "Shotgun Surgery."
  • Orthogonality: Design for independence. Ensure that changes in one module do not leak side effects into others. Minimize coupling and maximize cohesion.

2. Intent & Abstraction Hierarchy

  • Intent-Revealing Design: Prioritize human readability and intent over machine cleverness. Use naming that explains "Why" rather than "How."
  • Single Level of Abstraction (SLA): Adhere strictly to the Single Responsibility Principle (SRP). Each function must operate at a consistent level of abstraction and have exactly one reason to change.
@AndrewDongminYoo
AndrewDongminYoo / extensions.json
Last active January 15, 2026 01:57
VSCode์—์„œ ๊ผญ ๊ฐ€์ ธ๊ฐ€์•ผ ํ•  ์ต์Šคํ…์…˜๋“ค์˜ ๋ชจ์Œ. ๋กœ์ปฌ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ root directory์— '.vscode/extensions.json'์œผ๋กœ ์ €์žฅํ•˜๋ฉด Extension @recommanded ํƒญ์—์„œ ํ•œ๋ฒˆ์— ๋‹ค์šด๋กœ๋“œ ๊ฐ€๋Šฅํ•จ
{
"recommendations": [
// # ๊นƒ ๊ด€๋ จ ๊ธฐ๋ณธ ์ต์Šคํ…์…˜
// ๊นƒ๋žฉ ์›Œํฌํ”Œ๋กœ์šฐ. ๊นƒ๋žฉ์˜ CI/CD๋ฅผ VSCode์—์„œ ํŽธํ•˜๊ฒŒ ๊ด€๋ฆฌํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ฃผ๋Š” ํ”Œ๋Ÿฌ๊ทธ์ธ
"gitlab.gitlab-workflow",
// ๊นƒํ—™ ์›Œํฌํ”Œ๋กœ์šฐ. ๊นƒํ—™์˜ CI/CD๋ฅผ VSCode์—์„œ ํŽธํ•˜๊ฒŒ ๊ด€๋ฆฌํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ฃผ๋Š” ํ”Œ๋Ÿฌ๊ทธ์ธ
"cschleiden.vscode-github-actions",
// ๊นƒ๋ Œ์ฆˆ. ๊ฑฐ์˜ ํ•„์ˆ˜ ์ต์Šคํ…์…˜. ์ปค๋ฐ‹ ๋ฟ๋งŒ ์•„๋‹ˆ๋ผ, ํŒŒ์ผํžˆ์Šคํ† ๋ฆฌ, ๋ธŒ๋žœ์น˜, ์Šคํƒœ์‹œ ๋“ฑ์„ ๊ด€๋ฆฌํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ฃผ๋Š” ํ”Œ๋Ÿฌ๊ทธ์ธ
"eamodio.gitlens",
// ๊นƒ ํžˆ์Šคํ† ๋ฆฌ. ๊นƒ ์ปค๋ฐ‹์˜ ํžˆ์Šคํ† ๋ฆฌ(+๊นƒ ๋กœ๊ทธ)๋ฅผ ๋ณด์—ฌ์ฃผ๋Š” ํ”Œ๋Ÿฌ๊ทธ์ธ. ๊นƒ๋ Œ์ฆˆ์˜ ํŒŒ์ผํžˆ์Šคํ† ๋ฆฌ ๊ธฐ๋Šฅ๊ณผ ๋น„์Šทํ•˜์ง€๋งŒ,
@dollspace-gay
dollspace-gay / method.md
Created January 4, 2026 21:31
Verification-Driven Development (VDD) via Iterative Adversarial Refinement

Verification-Driven Development (VDD)

Methodology: Iterative Adversarial Refinement

Overview

Verification-Driven Development (VDD) is a high-integrity software engineering framework designed to eliminate "code slop" and logic gaps through a generative adversarial loop. Unlike traditional development cycles that rely on passive code reviews, VDD utilizes a specialized multi-model orchestration where a Builder AI and an Adversarial AI are placed in a high-friction feedback loop, mediated by a human developer and a granular tracking system.

I. The VDD Toolchain

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active January 15, 2026 01:47
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under Discover -> Quests
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@sj-io
sj-io / CLAUDE.md
Created August 21, 2025 09:25
Claude R Tidyverse Expert

Modern R Development Guide

This document captures current best practices for R development, emphasizing modern tidyverse patterns, performance, and style. Last updated: August 2025

Core Principles

  1. Use modern tidyverse patterns - Prioritize dplyr 1.1+ features, native pipe, and current APIs
  2. Profile before optimizing - Use profvis and bench to identify real bottlenecks
  3. Write readable code first - Optimize only when necessary and after profiling
  4. Follow tidyverse style guide - Consistent naming, spacing, and structure

Manage Multiple Claude Code Accounts

Run two Claude Code accounts simultaneously on macOS without re-authenticating by using separate configuration directories.

Steps

  1. Create Separate Config Directories
    mkdir ~/.claude-account1
    mkdir ~/.claude-account2